import request from '@/utils/request'

// 查询文档中心列表
export function listDocument(query) {
  return request({
    url: '/sora/fileCenter/list',
    method: 'get',
    params: query
  })
}

// 保存文档
export function saveDocument(info) {
  return request({
    url: '/sora/fileCenter',
    method: 'post',
    data: info
  })
}

// 删除文档
export function deleteDocument(ids) {
  return request({
    url: '/sora/fileCenter/'+ids,
    method: 'delete'
  })
}